package org.fig.dependency.injection;

import org.fig.ioc.overview.domain.User;

/**
 * {@link User} 的Holder类
 *
 * @Description:
 * @Author: Flynn Vanderboom
 * @Data: 2021/6/20 22:38
 */

public class UserHolder {
    private User user;

    public UserHolder() {

    }

    public UserHolder(User user) {
        this.user = user;
    }


    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserHolder{" +
                "user=" + user +
                '}';
    }
}
